# -*- coding: utf-8 -*-
# @Time        :2025/3/4 20:12
# @Author      :文刀水寿
# @File        : 14_爬虫_urllib_QQ空间的cookie登录.py
"""
 @Description :
"""
# https://h5.qzone.qq.com/mqzone/profile?sid=&hostuin=318494006&no_topbar=1&srctype=10&stat=&g_f=2000000209
#
import urllib.request

url_img = 'https://m.qpic.cn/psc?/V12tJzIT4Ro7dD/bqQfVz5yrrGYSXMvKr.cqae0JVHF9ADkFqoRviOFfjo*a6qKmQYRoqU3u8WA8yijfGjaJOjYj5aAewaWNp41rShftT0y7K3bCUK*9hj.9zY!/m&ek=1&kp=1&pt=0&bo=YAOAB2ADgAcRECc!&tl=1&su=0131683138&vuin=318494006&tm=1741089600&dis_t=1741092163&dis_k=2576a8e437348a1d14ccd14a78eb1a1e#sce=30-11-3&rf=v1_ht5_qz_3.4.0_001_idc_b-311-0&appid=311&quot'

headers = {
    'user-agent': 'Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Mobile Safari/537.36 Edg/133.0.0.0'
}

request = urllib.request.Request(url=url_img, headers=headers)

urllib.request.urlretrieve(url_img, 'tp.jpg')
